package router

import (
	"github.com/gin-gonic/gin"
	"off-script/handler"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/login", handler.Login)

	r.GET("/list", handler.List)

	r.POST("/add", handler.Add)
	return r
}
